#继承上一层的CMakeLists.txt的变量，也可以在这里重新赋值
#C 的编译选项是 CMAKE_C_FLAGS
# 指定编译参数，可选
#SET(CMAKE_CXX_FLAGS "-Wno-error=format-security -Wno-error=pointer-sign")

INCLUDE_DIRECTORIES(
                    ./rtsp
                    ./rtsp/librtsp)

#生成so动态库
add_library(tiny_rtsp_svr
            SHARED

            rtsp/com_wing_tools_rtsp_RtspServer.c
            rtsp/librtsp/mime.c
            rtsp/librtsp/rtp.c
            rtsp/librtsp/rtsp.c)

# Include libraries needed for hello-jni lib
target_link_libraries(tiny_rtsp_svr
                      -landroid
                      android
                      log)